#ifndef __MAIN_H
#define __MAIN_H

#include <stdbool.h>
#include "stm32f4xx.h"
#include "esp_at.h"
#include "dht11.h"
typedef struct 
{
    uint16_t year;
    uint8_t month;
    uint8_t day;
    uint8_t hour;
    uint8_t minute;
    uint8_t seconds;
    uint8_t weekday;
    
} rtc_date_time_t;

void board_lowlevel_init(void);
void board_init(void);
void sensor_init(void);
bool esp_wait_ready(void);
void app_clock_set(rtc_date_time_t *info);
void app_clock_update(rtc_date_time_t *info);
void app_init(void);

#endif
